import numpy as np

a = np.logspace(0, 9, 10)
print('数值10的0~9幂')
print('数组内容为：', a)
print('数组长度为：', a.size)
print('-'*20)
b = np.logspace(0, 9, 10, base=2)
print('数值10的0~9幂')
print('数组内容为：', b)
print('数组长度为：', b.size)